<?php 
	$this->load->view('shared/_navegation');
?>
<div style="position: relative;">
	<!-- Informçaões de plpayer e de proximo jogo -->
	<div style="float: left;">
		<table>
			<tbody>
				<tr>
					<td>Row 1: Col 1</td>
				</tr>
				<tr>
					<td>Row 1: Col 1</td>
				</tr>
			</tbody>
		</table>
	</div>
	
	<!-- Listagem de player -->
	<div style="float: left;">
		<table>
			<thead>
				<tr>
					<th></th>
					<th>Nome</th>
					<th>posição</th>
					<th>Idade</th>
					<th>gols</th>
					<th>habilidade</th>
					<th>Pais</th>
				</tr>
			</thead>
			<tbody>
				<?php 
					foreach ($players as $k => $p) {
						$bg = ($k % 2 == 0)?'style="background-color: #eee;"':'';
						echo '
							<tr '.$bg.'>
								<td><input type="checkbox" name="titular[]" value="'.$p['player_token'].'"></td>
								<td>'.$p['player_name'].'</td>
								<td>'.$p['player_position_name'].'</td>
								<td>'.$p['player_age'].'</td>
								<td>'.$p['player_gols'].'</td>
								<td>'.ceil($p['player_hability']/10).'</td>
								<td>'.$p['country_name'].'</td>
							</tr>';
					}
				?>
			</tbody>
		</table>
	</div>
</div>